export function isMobile() {
	let flag = {
		versions: function() {
			var u = navigator.userAgent;
			return {
				win: u.indexOf('Windows') > -1,
				mobile: !!u.match(/AppleWebKit.*Mobile.*/),
			};
		}()
		//language: navigator.language.toLowerCase()  
	}
	return flag;
}
export function countDown() {
	var nowDate = new Date();//实时日期
	var nextYear = new Date(nowDate.getFullYear() + 1 +'/1/1');//明年的一月一日
	var timediff = Math.round((nextYear - nowDate) / 1000); //时间差
	var d = parseInt(timediff / 3600 / 24); //天数
	var h = parseInt(timediff / 3600 % 24); //小时
	var m = parseInt(timediff / 60 % 60); //分钟
	var s = parseInt(timediff % 60); //秒
	return {
		day: d,
		hosur: h,
		minute: m,
		second: s
	};
}